package com.appwoo.txtws.activity;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import com.appwoo.txtws.component.HomeManage;
import com.appwoo.txtws.component.RqSP;

public class CheckModelActivity extends Activity
  implements View.OnClickListener
{
  private LinearLayout childs_layout = null;
  private LinearLayout parents_layout = null;

  public void init()
  {
    this.childs_layout = ((LinearLayout)findViewById(2131493034));
    this.parents_layout = ((LinearLayout)findViewById(2131493037));
    this.childs_layout.setOnClickListener(this);
    this.parents_layout.setOnClickListener(this);
  }

  public void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    case 2131493035:
    case 2131493036:
    default:
      return;
    case 2131493034:
      if ("com.appwoo.txtws.activity".equals(HomeManage.getInstance().getDefaultLauncher(this)));
      for (Intent localIntent = new Intent(this, MainActivity.class); ; localIntent = new Intent(this, DirectionActivity.class))
      {
        startActivity(localIntent);
        RqSP localRqSP = new RqSP();
        localRqSP.setFirVal(0, this);
        localRqSP.setExitVal(0, this);
        finish();
        return;
      }
    case 2131493037:
    }
    new RqSP().setFirVal(0, this);
    startActivity(new Intent(this, LoginActivity.class));
    finish();
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903072);
    init();
  }

  class LoadingSourceTask extends AsyncTask<Integer, String, Integer>
  {
    LoadingSourceTask()
    {
    }

    protected Integer doInBackground(Integer[] paramArrayOfInteger)
    {
      return null;
    }

    protected void onPostExecute(Integer paramInteger)
    {
      String str = CheckModelActivity.this.getSharedPreferences("Login", 32768).getString("loginpage2", "nopage");
      if (str.equals("nopage"))
      {
        Intent localIntent1 = new Intent(CheckModelActivity.this, CheckModelActivity.class);
        CheckModelActivity.this.startActivity(localIntent1);
        CheckModelActivity.this.finish();
        SharedPreferences.Editor localEditor = CheckModelActivity.this.getSharedPreferences("jumppage", 32768).edit();
        localEditor.putString("page", "1");
        localEditor.commit();
      }
      while (true)
      {
        super.onPostExecute(paramInteger);
        return;
        if (str.equals("launcher"))
        {
          Intent localIntent2 = new Intent(CheckModelActivity.this, MainActivity.class);
          CheckModelActivity.this.startActivity(localIntent2);
          CheckModelActivity.this.finish();
        }
      }
    }

    protected void onPreExecute()
    {
      super.onPreExecute();
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.activity.CheckModelActivity
 * JD-Core Version:    0.6.2
 */